package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoMountImagesType;
import com.muyu.danmo.mapper.DanmoMountImagesTypeMapper;
import com.muyu.danmo.service.IDanmoMountImagesTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 装裱图片类型Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class DanmoMountImagesTypeServiceImpl implements IDanmoMountImagesTypeService
{
    @Autowired
    private DanmoMountImagesTypeMapper danmoMountImagesTypeMapper;

    /**
     * 查询装裱图片类型
     *
     * @param id 装裱图片类型主键
     * @return 装裱图片类型
     */
    @Override
    public DanmoMountImagesType selectDanmoMountImagesTypeById(Long id)
    {
        return danmoMountImagesTypeMapper.selectDanmoMountImagesTypeById(id);
    }

    /**
     * 查询装裱图片类型列表
     *
     * @param danmoMountImagesType 装裱图片类型
     * @return 装裱图片类型
     */
    @Override
    public List<DanmoMountImagesType> selectDanmoMountImagesTypeList(DanmoMountImagesType danmoMountImagesType)
    {
        return danmoMountImagesTypeMapper.selectDanmoMountImagesTypeList(danmoMountImagesType);
    }

    /**
     * 新增装裱图片类型
     *
     * @param danmoMountImagesType 装裱图片类型
     * @return 结果
     */
    @Override
    public int insertDanmoMountImagesType(DanmoMountImagesType danmoMountImagesType)
    {
        return danmoMountImagesTypeMapper.insertDanmoMountImagesType(danmoMountImagesType);
    }

    /**
     * 修改装裱图片类型
     *
     * @param danmoMountImagesType 装裱图片类型
     * @return 结果
     */
    @Override
    public int updateDanmoMountImagesType(DanmoMountImagesType danmoMountImagesType)
    {
        return danmoMountImagesTypeMapper.updateDanmoMountImagesType(danmoMountImagesType);
    }

    /**
     * 批量删除装裱图片类型
     *
     * @param ids 需要删除的装裱图片类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountImagesTypeByIds(Long[] ids)
    {
        return danmoMountImagesTypeMapper.deleteDanmoMountImagesTypeByIds(ids);
    }

    /**
     * 删除装裱图片类型信息
     *
     * @param id 装裱图片类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountImagesTypeById(Long id)
    {
        return danmoMountImagesTypeMapper.deleteDanmoMountImagesTypeById(id);
    }
}
